import keras
from keras import layers

# ----------------- 搭建一个卷积神经网络 ----------------
model = keras.Sequential([
    # layers.Flatten 将输入的特征进行拉伸后的数据作为输入
    # layers.Conv2D(卷积核的数量,卷积核的大小,激活函数,输入的形状,Padding模式,步长)
    # layers.Conv2D(64,(3,3),activation="relu",input_shape=(224,224,3),padding="valid",strides=2),
    # layers.Conv2D(32,(3,3),activation="relu",input_shape=(111,111,64),padding="valid",strides=2),
    # layers.Conv2D(32,(3,3),activation="relu",input_shape=(55,55,32),padding="valid",strides=2),

    layers.Conv2D(64,(3,3),activation='relu',input_shape=(224,224,3),padding='SAME'),
    layers.Conv2D(64,(3,3),activation='relu',padding='SAME',strides=1),
    layers.Dense(1000),
    keras.layers.Dense(2,activation='softmax')

])